package com.pengshun.modules.api.order.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Second;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class MerchantEvaluateDto {

    //评论id
    @Id
    @NotNull(message = "评论id不能为空", groups = {Second.class})
    private Long merchantEvaluateId;

    //订单id
    @NotNull(message = "订单id不能为空", groups = {First.class})
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    //评分
    @NotNull(message = "评分不能为空", groups = {First.class})
    @ApiModelProperty(value = "评分")
    private BigDecimal score;

    //评论内容
    @ApiModelProperty(value = "评论内容")
    private String content;

    //商户id
    @NotNull(message = "商户id不能为空", groups = {First.class})
    @ApiModelProperty(value = "商户id")
    private Long merchantId;

    //图片1
    @ApiModelProperty(value = "图片1")
    private String firstImage;

    //图片2
    @ApiModelProperty(value = "图片2")
    private String secondImage;

    //图片3
    @ApiModelProperty(value = "图片3")
    private String thirdImage;

    //图片4
    @ApiModelProperty(value = "图片4")
    private String fourImage;

    //图片5
    @ApiModelProperty(value = "图片5")
    private String  fiveImage;

    //状态（1正常/2取消）
    @ApiModelProperty(value = "状态（1正常/2取消）")
    private int status;

    //用户id
    @ApiModelProperty(value = "用户id")
    private Long userId;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
